package com.kayt.cyberBar.message.business.entity.po;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.persistence.*;

/**
 * The persistent class for the b_message_notice_detail database table.
 * 
 */
@Entity
@Table(name="b_message_notice_detail")
@NamedQuery(name="BMessageNoticeDetail.findAll", query="SELECT b FROM BMessageNoticeDetail b")
public class BMessageNoticeDetail implements Serializable {
	private static final long serialVersionUID = 1L;
	private Long id;
	private String code;
	private String createTime;
	private String detail;
	private String businessCode;
	private String businessType;
	private String msgCode;
	private String updateTime;
	
	private List<BMessageDetailItem> itemList = new ArrayList<>();

	public BMessageNoticeDetail() {
	}


	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}


	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}


	@Column(name="CREATE_TIME")
	public String getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}


	public String getDetail() {
		return this.detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}


	@Column(name="MSG_CODE")
	public String getMsgCode() {
		return this.msgCode;
	}

	public void setMsgCode(String msgCode) {
		this.msgCode = msgCode;
	}


	@Column(name="UPDATE_TIME")
	public String getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}


	@OneToMany(targetEntity = BMessageDetailItem.class, cascade = CascadeType.ALL, fetch = FetchType.LAZY, orphanRemoval = true, mappedBy = "detail")
	public List<BMessageDetailItem> getItemList() {
		return itemList;
	}


	public void setItemList(List<BMessageDetailItem> itemList) {
		this.itemList = itemList;
	}

	@Column(name="BUSINESS_CODE")
	public String getBusinessCode() {
		return businessCode;
	}


	public void setBusinessCode(String businessCode) {
		this.businessCode = businessCode;
	}

	@Column(name="BUSINESS_TYPE")
	public String getBusinessType() {
		return businessType;
	}


	public void setBusinessType(String businessType) {
		this.businessType = businessType;
	}
	
}